package com.easyfile.easyfilemaster.entity.dto;

import lombok.Data;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * @author chenpeman
 * @date 2022年05月16日 20:28
 */
@Data
public class GetPresignedChunkUrlsDto {
    private Long userId;
    @NotBlank(message = "md5值不为空")
    private String md5;
    @NotBlank(message = "文件名不为空")
    private String fileName;
    @NotNull(message = "分片数量不为空")
    private Long totalChunks;
    @NotNull(message = "文件夹id不为空")
    @Min(value = 1000000000000000000L,message = "文件夹ID不正确")
    private Long folderId;
}
